package ee.maoinvest.backend.model.dao;

import java.sql.Date;
import java.util.List;

import ee.maoinvest.backend.model.data.RegularReading;

public interface RegularReadingDAO
{
	public int insertRegularReading(RegularReading regularReading);
	public RegularReading getRegularReadingByID(int regularReadingID);
	public int updateRegularReading(RegularReading regularReading);
	
	public RegularReading getLatestRegularReading();
	public boolean areThereUndergoingRegularReadings();
	public int getCountOfHowManyElectricityMeterReadingsTakingPartInRegularReadingsAreNotYetBeenTaken(int regularReadingID);
	public List<RegularReading> getListOfAllRegularReadingsTakenBetweenGivenIDs(int minRegularReadingID, int maxRegularReadingID);
	public boolean doesRegularReadingWithGivenIDExists(int regularReadingID);
	public List<RegularReading> getListOfRegularReadingsTakenBetweenGivenDates(Date minDate, Date maxDate);
}
